package com.design.controller;

import com.design.domain.result.CommonResult;
import com.design.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
public class MenuController {

	@Autowired
	private IMenuService menuService;

	@PostMapping("/getRouters")
	public CommonResult getRouters() {
		return menuService.selectMenuTree();
	}

}
